package com.vlefen.springcloud.grpc.consul;

import com.ecwid.consul.v1.agent.model.NewCheck;
import com.ecwid.consul.v1.agent.model.NewService;
import com.google.gson.annotations.SerializedName;

import java.util.List;

public class ConsulService extends NewService {

    @SerializedName("Check")
    public NewCheck check;
    @SerializedName("Checks")
    public List<NewCheck> checks;

    public String toString() {
        return "NewService{id='" + this.getId() + '\'' + ", name='" + this.getName() + '\'' + ", tags=" + this.getTags() + ", address='" + this.getAddress() + '\'' + ", port=" + this.getPort() + ", enableTagOverride=" + this.getEnableTagOverride() + ", check=" + this.check + ", checks=" + this.checks + '}';
    }
}
